package com.howtographql.hackernews;

/**
 * 功能说明：
 *
 * @author xiaoyu
 * @date 2019/2/21
 */

import com.coxautodev.graphql.tools.GraphQLResolver;
import com.howtographql.hackernews.user.SigninPayload;
import com.howtographql.hackernews.user.User;

/**
 *
 * @description
 * @version 1.0
 * @author Administrator
 * @date 2019/2/21 14:45
 *
 */
public class SigninResolver implements GraphQLResolver<SigninPayload> {
    public User user(SigninPayload payload) {
        return payload.getUser();
    }
}
